///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Mar  6 2009)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "panelworkrequestgui.h"

#include "res/edit_add.xpm"
#include "res/edit_del.xpm"

///////////////////////////////////////////////////////////////////////////

PanelWorkRequestGui::PanelWorkRequestGui( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxVERTICAL );
	
	m_toolbar = new wxToolBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_HORIZONTAL ); 
	m_toolbar->AddTool( ID_PM_ADD_COST, wxEmptyString, wxBitmap( edit_add_xpm ), wxNullBitmap, wxITEM_NORMAL, _("Add working request"), _("Add working request") );
	m_toolbar->AddTool( ID_PM_DEL_COST, wxEmptyString, wxBitmap( edit_del_xpm ), wxNullBitmap, wxITEM_NORMAL, _("Remove working request"), _("Remove working request") );
	m_toolbar->Realize();
	
	bSizer2->Add( m_toolbar, 0, wxEXPAND, 5 );
	
	m_listWR = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer2->Add( m_listWR, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer2 );
	this->Layout();
	bSizer2->Fit( this );
	
	// Connect Events
	this->Connect( ID_PM_ADD_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelWorkRequestGui::OnAddWR ) );
	this->Connect( ID_PM_DEL_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelWorkRequestGui::OnDelWR ) );
}

PanelWorkRequestGui::~PanelWorkRequestGui()
{
	// Disconnect Events
	this->Disconnect( ID_PM_ADD_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelWorkRequestGui::OnAddWR ) );
	this->Disconnect( ID_PM_DEL_COST, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( PanelWorkRequestGui::OnDelWR ) );
}
